<template>
	<view>
		<bg-video></bg-video>
		<cu-custom bgColor="bg-main" :isBack="true">
			<block slot="content">扫码进门</block>
		</cu-custom>
		<view class="padding-top-lg">
			<uqrcode class="flex justify-center" ref="uqrcode"></uqrcode>
		</view>
	</view>
</template>

<script>
	export default {
		data: function() {
			return {
				item: {
					yyjlitemid: "YIJLid01",
				},
			};
		
		},
		onLoad: function(option) {
			this.item.yyjlitemid = option.yyjlitemid;
		},
		onReady: function() {
			let codeStr = JSON.stringify(this.item);
			this.$refs
				.uqrcode
				.make({
					mode: "view",
					size: 300,
					text: codeStr
				});
		}
	}
</script>

<style scoped>
	.uqrcode {
		display: flex;
		justify-content: center;
	}
</style>